import Request from '@/utils/requset.js'
let request = new Request().http

//全局定义请求头
export default {
	//=============公共接口==================
	commonInfo: function(data) {
		return request({
			url: "modules/commonInfo/appList", //请求头
			method: "GET", //请求方式
			data: data, //请求数据
			hideLoading: true
		})
	},
	//微信支付
	wxpay: function(data) {
		return request({
			url: "modules/order/createOrder", //请求头
			method: "POST", //请求方式
			data: data, //请求数据
			hideLoading: true
		})
	},
	//支付宝支付
	alipay: function(data) {
		return request({
			url: "modules/order/createOrder", //请求头
			method: "POST", //请求方式
			data: data, //请求数据
			hideLoading: true
		})
	},
	//支付统一最新接口
	payNew: function(data) {
		return request({
			url: "modules/order/createOrderNew", //请求头
			method: "POST", //请求方式
			data: data, //请求数据
			hideLoading: true
		})
	},
	//苹果支付
	applepay: function(data) {
		return request({
			url: "modules/applePay/setReceipt", //请求头
			method: "POST", //请求方式
			data: data, //请求数据
			hideLoading: true
		})
	},
	//获取支付金额
	appAmount: function(data) {
		return request({
			url: "modules/order/appAmount", //请求头
			method: "GET", //请求方式
			data: data, //请求数据
			hideLoading: true
		})
	},
	appAmountNew: function(data) {
		return request({
			url: "modules/orderAmount/appList", //请求头
			method: "POST", //请求方式
			data: data, //请求数据
			hideLoading: true
		})
	},
	//=============用户==================
	login: function(data) {
		return request({
			url: "modules/serviceUser/loginUser", //请求头
			method: "PUT", //请求方式
			data: data, //请求数据
			hideLoading: true
		})
	},
	updateUser: function(data) {
		return request({
			url: "modules/serviceUser/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteUser: function(data, deleteId) {
		return request({
			url: "modules/serviceUser/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	wxLogin: function(data) {
		return request({
			url: "modules/serviceUser/wxLogin",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	detailUser: function(data, detailId) {
		return request({
			url: "modules/serviceUser/detail/" + detailId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//邮箱验证码
	getMailCode: function(data) {
		return request({
			url: "modules/serviceUser/getMailCode",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	forgetPasswordMail: function(data) {
		return request({
			url: "modules/serviceUser/forgetPasswordMail",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//获取图片
	listIcon: function(data) {
		return request({
			url: "modules/icon/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//更新图片
	updateIcon: function(data) {
		return request({
			url: "modules/icon/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============提醒==================
	updateWarn: function(data) {
		return request({
			url: "modules/warn/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listWarn: function(data) {
		return request({
			url: "modules/warn/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},

	//==============账户=================
	addAccount: function(data) {
		return request({
			url: "modules/account/appAdd",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	editAccount: function(data) {
		return request({
			url: "modules/account/appEdit",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listAccount: function(data) {
		return request({
			url: "modules/account/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteAccount: function(data, deleteId) {
		return request({
			url: "modules/account/appRemove/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============网址==================
	updateLink: function(data) {
		return request({
			url: "modules/link/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listLink: function(data) {
		return request({
			url: "modules/link/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteLink: function(data, deleteId) {
		return request({
			url: "modules/link/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============体重==================
	updateWeight: function(data) {
		return request({
			url: "modules/weight/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listWeight: function(data) {
		return request({
			url: "modules/weight/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteWeight: function(data, deleteId) {
		return request({
			url: "modules/weight/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateHeight: function(data) {
		return request({
			url: "modules/height/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	setHeightDefault: function(data) {
		return request({
			url: "modules/height/appChecked",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listHeight: function(data) {
		return request({
			url: "modules/height/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteHeight: function(data, deleteId) {
		return request({
			url: "modules/height/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============体围==================
	updateGirth: function(data) {
		return request({
			url: "modules/girth/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listGirth: function(data) {
		return request({
			url: "modules/girth/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteGirth: function(data, deleteId) {
		return request({
			url: "modules/girth/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============银行卡==================
	updateBank: function(data) {
		return request({
			url: "modules/bank/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listBank: function(data) {
		return request({
			url: "modules/bank/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteBank: function(data, deleteId) {
		return request({
			url: "modules/bank/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============通讯录==================
	updateCard: function(data) {
		return request({
			url: "modules/card/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	batchAddCard: function(data) {
		return request({
			url: "modules/card/batchAdd",
			method: "POST",
			data: data,
			hideLoading: false
		})
	},
	listCard: function(data) {
		return request({
			url: "modules/card/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteCard: function(data, deleteId) {
		return request({
			url: "modules/card/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},

	//=============生理期==================
	updateMenstrualRecords: function(data) {
		return request({
			url: "modules/menstrualRecords/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	detailMenstrualRecords: function(data) {
		return request({
			url: "modules/menstrualRecords/detail",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listMenstrualRecords: function(data) {
		return request({
			url: "modules/menstrualRecords/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listMenstrualRecordsCountList: function(data) {
		return request({
			url: "modules/menstrualRecords/countList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateMenstrual: function(data) {
		return request({
			url: "modules/menstrual/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listMenstrual: function(data) {
		return request({
			url: "modules/menstrual/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listMenstrualForecast: function(data) {
		return request({
			url: "modules/menstrualForecast/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//=============记账==================
	updateBill: function(data) {
		return request({
			url: "modules/bill/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listBill: function(data) {
		return request({
			url: "modules/bill/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	detailBill: function(data, detailId) {
		return request({
			url: "modules/bill/detail/" + detailId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	countByTimeBill: function(data) {
		return request({
			url: "modules/bill/appCountByTime",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	countByItemBill: function(data) {
		return request({
			url: "modules/bill/appCountByItem",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteBill: function(data, deleteId) {
		return request({
			url: "modules/bill/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateBillType: function(data) {
		return request({
			url: "modules/billType/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listBillType: function(data) {
		return request({
			url: "modules/billType/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteBillType: function(data, deleteId) {
		return request({
			url: "modules/billType/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},

	//=============报销==================
	updateExpense: function(data) {
		return request({
			url: "modules/expense/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listExpense: function(data) {
		return request({
			url: "modules/expense/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteExpense: function(data, deleteId) {
		return request({
			url: "modules/expense/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateExpenseType: function(data) {
		return request({
			url: "modules/expenseType/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listExpenseType: function(data) {
		return request({
			url: "modules/expenseType/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteExpenseType: function(data, deleteId) {
		return request({
			url: "modules/expenseType/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============倒数日纪念日==================
	updateEvent: function(data) {
		return request({
			url: "modules/event/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listEvent: function(data) {
		return request({
			url: "modules/event/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteEvent: function(data, deleteId) {
		return request({
			url: "modules/event/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	
	updateEventRecord: function(data) {
		return request({
			url: "modules/eventRecord/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listEventRecord: function(data) {
		return request({
			url: "modules/eventRecord/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	detailEventRecord: function(data) {
		return request({
			url: "modules/eventRecord/appDetail",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteEventRecord: function(data, deleteId) {
		return request({
			url: "modules/eventRecord/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//=============日记==================
	updateDiary: function(data) {
		return request({
			url: "modules/diary/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listDiary: function(data) {
		return request({
			url: "modules/diary/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	detailDiary: function(data, detailId) {
		return request({
			url: "modules/diary/detail/" + detailId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteDiary: function(data, deleteId) {
		return request({
			url: "modules/diary/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============习惯==================
	updateHabit: function(data) {
		return request({
			url: "modules/habit/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateHabitStatus: function(data) {
		return request({
			url: "modules/habit/appUpdateStatus",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listHabit: function(data) {
		return request({
			url: "modules/habit/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listHabitCountByTime: function(data) {
		return request({
			url: "modules/habit/appCountByTime",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	sortHabit: function(data) {
		return request({
			url: "modules/habit/appSort",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteHabit: function(data, deleteId) {
		return request({
			url: "modules/habit/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	countByTypeHabit: function(data) {
		return request({
			url: "modules/habit/appCountByType",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	countByYearHabit: function(data) {
		return request({
			url: "modules/habit/appCountByYear",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listHabitIcon: function(data) {
		return request({
			url: "modules/icon/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateHabitLog: function(data) {
		return request({
			url: "modules/habitLog/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteHabitLog: function(data, deleteId) {
		return request({
			url: "modules/habitLog/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============心情日记==================
	updateMood: function(data) {
		return request({
			url: "modules/mood/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listMood: function(data) {
		return request({
			url: "modules/mood/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteMood: function(data, deleteId) {
		return request({
			url: "modules/mood/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============备忘录==================
	updateMemo: function(data) {
		return request({
			url: "modules/memo/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listMemo: function(data) {
		return request({
			url: "modules/memo/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	hisListMemo: function(data) {
		return request({
			url: "modules/memo/appHistory",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	detailMemo: function(data, detailId) {
		return request({
			url: "modules/memo/detail/" + detailId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteMemo: function(data, deleteId) {
		return request({
			url: "modules/memo/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateMemoType: function(data) {
		return request({
			url: "modules/memoType/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listMemoType: function(data) {
		return request({
			url: "modules/memoType/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	
	deleteMemoType: function(data, deleteId) {
		return request({
			url: "modules/memoType/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============份子钱==================
	updateGift: function(data) {
		return request({
			url: "modules/gift/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listGift: function(data) {
		return request({
			url: "modules/gift/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	countGift: function(data) {
		return request({
			url: "modules/gift/appCount",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteGift: function(data, deleteId) {
		return request({
			url: "modules/gift/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateGiftBook: function(data) {
		return request({
			url: "modules/giftBook/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listGiftBook: function(data) {
		return request({
			url: "modules/giftBook/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteGiftBook: function(data, deleteId) {
		return request({
			url: "modules/giftBook/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============目标==================
	updateTarget: function(data) {
		return request({
			url: "modules/target/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listTarget: function(data) {
		return request({
			url: "modules/target/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	detailTarget: function(data, detailId) {
		return request({
			url: "modules/target/detail/" + detailId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteTarget: function(data, deleteId) {
		return request({
			url: "modules/target/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listTargetIcon: function(data) {
		return request({
			url: "modules/icon/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateTargetLog: function(data) {
		return request({
			url: "modules/targetLog/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listTargetLog: function(data) {
		return request({
			url: "modules/targetLog/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},

	//=============me==================
	//关于
	listMeAbout: function(data) {
		return request({
			url: "modules/about/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//功能
	listFeature: function(data) {
		return request({
			url: "modules/feature/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listFeatureNew: function(data) {
		return request({
			url: "modules/feature/appListNew",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateUserFeature: function(data) {
		return request({
			url: "modules/userFeature/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	appSortFeature: function(data) {
		return request({
			url: "modules/userFeature/appSort",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteUserFeature: function(data, deleteId) {
		return request({
			url: "modules/userFeature/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	appReview: function(data) {
		return request({
			url: "modules/userFeature/appReview",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//建议
	updateUserSuggest: function(data) {
		return request({
			url: "modules/userSuggest/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//我的消息
	listNotice: function(data) {
		return request({
			url: "modules/serviceNotice/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	detailNotice: function(data, detailId) {
		return request({
			url: "modules/serviceNotice/detail/" + detailId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//提醒
	listUserSet: function(data) {
		return request({
			url: "modules/userSet/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateUserSet: function(data) {
		return request({
			url: "modules/userSet/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============tarbar==================
	//愿望清单
	updateWish: function(data) {
		return request({
			url: "modules/wish/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listWish: function(data) {
		return request({
			url: "modules/wish/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteWish: function(data, deleteId) {
		return request({
			url: "modules/wish/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateWishSub: function(data) {
		return request({
			url: "modules/wishSub/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listWishSub: function(data) {
		return request({
			url: "modules/wishSub/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteWishSub: function(data, deleteId) {
		return request({
			url: "modules/wishSub/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//四象限matter
	updateMatter: function(data) {
		return request({
			url: "modules/matter/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listMatter: function(data) {
		return request({
			url: "modules/matter/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteMatter: function(data, deleteId) {
		return request({
			url: "modules/matter/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateMatterType: function(data) {
		return request({
			url: "modules/matterType/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listMatterType: function(data) {
		return request({
			url: "modules/matterType/appList",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteMatterType: function(data, deleteId) {
		return request({
			url: "modules/matterType/appDelete/" + deleteId,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	
	//视图
	updateDayView: function(data) {
		return request({
			url: "modules/dayView/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listUserView: function(data) {
		return request({
			url: "modules/userView/getView",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//=============复盘==================
	//愿望清单
	//心情周
	listMoodWeekList: function(data) {
		return request({
			url: "modules/mood/appWeekList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//目标：周 1 月 2
	listTargetMonthList: function(data) {
		return request({
			url: "modules/target/appTargetMonthList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//体重周
	listWeightList: function(data) {
		return request({
			url: "modules/weight/appWeightList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//记账：周1 月2
	listBillCountForReview: function(data) {
		return request({
			url: "modules/bill/appCountForReview",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//习惯：周1 月2
	listHabitWeekAndMonthList: function(data) {
		return request({
			url: "modules/habit/appWeekAndMonthList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listMatterList: function(data) {
		return request({
			url: "modules/matter/appMatterReview",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//记时间
	updateTime: function(data) {
		return request({
			url: "modules/time/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	queryTimeCheck: function(data) {
		return request({
			url: "modules/time/appCheck",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listTimeList: function(data) {
		return request({
			url: "modules/time/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteTime: function(data, deleteId) {
		return request({
			url: "modules/time/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listTimeAppCount: function(data) {
		return request({
			url: "modules/time/appCount",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateTypeTime: function(data) {
		return request({
			url: "modules/type/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listTypeTimeList: function(data) {
		return request({
			url: "modules/type/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteTypeTime: function(data, deleteId) {
		return request({
			url: "modules/type/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//空间管理
	listGoodsList: function(data) {
		return request({
			url: "modules/goods/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listGoodsListPage: function(data) {
		return request({
			url: "modules/goods/appPage",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateGoods: function(data) {
		return request({
			url: "modules/goods/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteGoods: function(data, deleteId) {
		return request({
			url: "modules/goods/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//积分奖惩
	
	updateTypeCommon: function(data) {
		return request({
			url: "modules/type/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	setTypeDefault: function(data) {
		return request({
			url: "modules/type/appChecked",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listTypeCommonList: function(data) {
		return request({
			url: "modules/type/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteTypeCommon: function(data, deleteId) {
		return request({
			url: "modules/type/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	appSortType: function(data) {
		return request({
			url: "modules/type/appSort",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//积分
	listLeftScoreList: function(data) {
		return request({
			url: "modules/points/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateLeftScore: function(data) {
		return request({
			url: "modules/points/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteLeftScore: function(data, deleteId) {
		return request({
			url: "modules/points/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listLeftScoreAppByEvents: function(data) {
		return request({
			url: "modules/points/appByEvents",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//奖品列表
	listPointsGoodsList: function(data) {
		return request({
			url: "modules/pointsGoods/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updatePointsGoods: function(data) {
		return request({
			url: "modules/pointsGoods/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deletePointsGoods: function(data, deleteId) {
		return request({
			url: "modules/pointsGoods/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listPointsGoodsAppByEvents: function(data) {
		return request({
			url: "modules/pointsGoods/appByEvents",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//人员
	listLeftPersonList: function(data) {
		return request({
			url: "modules/pointsPerson/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateLeftPerson: function(data) {
		return request({
			url: "modules/pointsPerson/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	appCheckedLeftPerson: function(data) {
		return request({
			url: "modules/pointsPerson/appChecked",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	deleteLeftPerson: function(data, deleteId) {//废弃
		return request({
			url: "modules/pointsPerson/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	exitLeftPerson: function(data) {
		return request({
			url: "modules/pointsPerson/leave" ,
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//活动
	listEventsList: function(data) {
		return request({
			url: "modules/pointsEvents/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	listAppJoinList: function(data) {
		return request({
			url: "modules/pointsEvents/appJoinList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateEvents: function(data) {
		return request({
			url: "modules/pointsEvents/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteEvents: function(data, deleteId) {
		return request({
			url: "modules/pointsEvents/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	getEventByCode: function(data) {
		return request({
			url: "modules/pointsEvents/appByCode",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//查询默认活动
	listEventsAppByCheck: function(data) {
		return request({
			url: "modules/pointsEvents/appByCheck",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listEventsAppById: function(data) {
		return request({
			url: "modules/pointsEvents/appById",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listEventsAppPointsList: function(data) {
		return request({
			url: "modules/pointsEvents/appPointsList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//设置默认
	eventsAppChecked: function(data) {
		return request({
			url: "modules/pointsEvents/appChecked",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//活动积分统计
	eventsAppPointsCount: function(data) {
		return request({
			url: "modules/pointsEvents/appPointsCount",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//物品兑换
	appExchange: function(data) {
		return request({
			url: "modules/pointsRecord/appExchange",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//兑换记录
	appExchangeList: function(data) {
		return request({
			url: "modules/pointsRecord/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//积分记录新增
	updateRecords: function(data) {
		return request({
			url: "modules/pointsRecord/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteRecords: function(data, deleteId) {
		return request({
			url: "modules/pointsRecord/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//计划
	listPlan: function(data) {
		return request({
			url: "modules/plan/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updatePlan: function(data) {
		return request({
			url: "modules/plan/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deletePlan: function(data, deleteId) {
		return request({
			url: "modules/plan/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listPlanDetail: function(data) {
		return request({
			url: "modules/planDetail/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updatePlanDetail: function(data) {
		return request({
			url: "modules/planDetail/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateBatchPlanDetail: function(data) {
		return request({
			url: "modules/planDetail/appBatchUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deletePlanDetail: function(data, deleteId) {
		return request({
			url: "modules/planDetail/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listPlanLogDetail: function(data) {
		return request({
			url: "modules/planDetail/appLog",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updatePlanLog: function(data) {
		return request({
			url: "modules/planLog/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	
	//事情
	listThing: function(data) {
		return request({
			url: "modules/thing/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateThing: function(data) {
		return request({
			url: "modules/thing/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	countThing: function(data) {
		return request({
			url: "modules/thing/appCount",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteThing: function(data, deleteId) {
		return request({
			url: "modules/thing/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	listThingRecord: function(data) {
		return request({
			url: "modules/thingRecord/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateThingRecord: function(data) {
		return request({
			url: "modules/thingRecord/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteThingRecord: function(data, deleteId) {
		return request({
			url: "modules/thingRecord/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	countThingRecord: function(data) {
		return request({
			url: "modules/thingRecord/appCount",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	//时间线日程
	listSchedule: function(data) {
		return request({
			url: "modules/schedule/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	appAddSchedule: function(data) {
		return request({
			url: "modules/schedule/appAdd",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	appUpdateOneSchedule: function(data) {
		return request({
			url: "modules/schedule/appUpdateOne",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	appUpdateFutureSchedule: function(data) {
		return request({
			url: "modules/schedule/appUpdateFuture",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateSchedule: function(data) {
		return request({
			url: "modules/schedule/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteSchedule: function(data) {
		return request({
			url: "modules/schedule/appDelete",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	appChangeSchedule: function(data) {
		return request({
			url: "modules/scheduleLog/appChange",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	getScheduleAppAll: function(data) {
		return request({
			url: "modules/schedule/appAll",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	getScheduleAppDetail: function(data) {
		return request({
			url: "modules/schedule/appDetail",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	copyScheduleCopy: function(data) {
		return request({
			url: "modules/schedule/appCopy",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//存钱罐
	listSavePlan: function(data) {
		return request({
			url: "modules/savePlan/appListInfo",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteSavePlan: function(data, deleteId) {
		return request({
			url: "modules/savePlan/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateSavePlan: function(data) {
		return request({
			url: "modules/savePlan/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	updateSavePlanStatus: function(data) {
		return request({
			url: "modules/savePlan/updateStatus",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	detailSavePlan: function(data) {
		return request({
			url: "modules/savePlan/appDetail",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	appPlanDetail: function(data) {
		return request({
			url: "modules/savePlan/appPlanDetail",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	//存钱
	listSaveMoney: function(data) {
		return request({
			url: "modules/saveMoney/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteSaveMoney: function(data, deleteId) {
		return request({
			url: "modules/saveMoney/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateSaveMoney: function(data) {
		return request({
			url: "modules/saveMoney/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	detailSaveMoney: function(data) {
		return request({
			url: "modules/saveMoney/appDetail",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	
	//记成绩
	listGrade: function(data) {
		return request({
			url: "modules/grade/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteGrade: function(data, deleteId) {
		return request({
			url: "modules/grade/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateGrade: function(data) {
		return request({
			url: "modules/grade/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	detailGrade: function(data) {
		return request({
			url: "modules/grade/appDetail",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	
	//衣橱
	listClothes: function(data) {
		return request({
			url: "modules/clothes/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteClothes: function(data, deleteId) {
		return request({
			url: "modules/clothes/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateClothes: function(data) {
		return request({
			url: "modules/clothes/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	detailClothes: function(data) {
		return request({
			url: "modules/clothes/appDetail",
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	
	//穿搭
	listClothesMatch: function(data) {
		return request({
			url: "modules/clothesMatch/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteClothesMatch: function(data, deleteId) {
		return request({
			url: "modules/clothesMatch/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateClothesMatch: function(data) {
		return request({
			url: "modules/clothesMatch/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	
	//穿搭记录
	listClothesRecord: function(data) {
		return request({
			url: "modules/clothesRecord/appList",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
	deleteClothesRecord: function(data, deleteId) {
		return request({
			url: "modules/clothesRecord/appDelete/" + deleteId,
			method: "GET",
			data: data,
			hideLoading: true
		})
	},
	updateClothesRecord: function(data) {
		return request({
			url: "modules/clothesRecord/appUpdate",
			method: "POST",
			data: data,
			hideLoading: true
		})
	},
}
/*
请求样式：
	自定义名字: function(data) {
		return request({
			url: "/banner", //请求头
			method: "GET", //请求方式
			data: data,	//请求数据
			token: token, // 可传 
			hideLoading: false, //加载样式
		})
	},
页面请求方法样式 1 在请求页面中调用
	1.先导入本页面
		import api from '@/common/api.js'
		
	2.在methods 中 调用：
		api.classifyLeft().then((res) => {
			console.log(res);
		})
页面请求方法样式 2 全局调用
	1. 在main.js 中引入api.js
		import api from '@/common/api.js'
		
		Vue.prototype.$api = api
		
	2. 在页面中调用
	//不传参数
		this.$api.classifyLeft().then((res) => {
			console.log(res);
		})
	//传参
		this.$api.classifyLeft({参数}).then((res) => {
			console.log(res);
		})
*/